CAMEL-13920: Allow using markup in option description - #3137
Conversation
| |=== | ||
| | Name | Description | Default | Type | ||
| @foreach{row : componentOptions}| *@{row.getShortName(25)}* (@{row.shortGroup}) | @{util.escape(row.description)} | @{row.getShortDefaultValue(20)} | @{row.getShortJavaType(25)} | ||
| @foreach{row : componentOptions}| *@{row.getShortName(25)}* (@{row.shortGroup}) @{row.description.?contains("\n") ? "a" : ""}| @{util.escape(row.description)} | @{row.getShortDefaultValue(20)} | @{row.getShortJavaType(25)} |
There was a problem hiding this comment.
@davsclaus have a look at the Asciidoctor manual this helps in rendering the Asciidoc column content, without it it would render verbatim.
There was a problem hiding this comment.
Okay is there a way to document this better in the source code so anyone knows this
|
Thanks for the pull request, now it's a bit clearer for me to see what you're trying to fix. Does prefixing table columns with |
|
Hmm that actually doesn't work, I've tried the example I provided and it renders the Another option could be to take the JavaDoc content and convert it to Markdown in the Camel package Maven plugin. Perhaps using something like remark. |
|
I was thinking about converting HTML to markdown too, but havent found a way get full javadoc in |
|
Javadoc documentation is not as important as the website docs and tooling docs (eg spring boot metadata etc). So I am fine with formatting the source code so it render better on the website. I dont like having 2 set of description in the json file. |
|
Perhaps we can go with this solution and then in a subsequent refinement try to modify the toolchain so that we get raw JavaDoc content including HTML in the Maven mojos so we can change format as needed: strip HTML for JSON catalog and convert to Markdown for Asciidoc files. |
|
Agree. I will add few comments to mvel template regarding |
This is best way, I have found so far to allow lists in description. Please review and comment, if you see some better solution, because I feel, that adding
\nto javadoc is somehow incorrect.